<?php
/**
 *
 *
 * 功能说明：系统管理。
 *
 **/

namespace Qwadmin\Controller;

class NumberController extends ComController
{
    public function cai()
    {
    	$this->display();
    }



    public function add()
    {
    	// dump(I());
    	// exit;
    	$norm  = $_POST['name'];
    	$norm2  = $_POST['name2'];
    	$list['result'] = $_POST['result'];
    	$list['standard'] = $_POST['standard'];
    	$list['check'] = $_POST['check'];
    	$list2['result'] = $_POST['result2'];
    	$list2['standard'] = $_POST['standard2'];
    	$list2['check'] = $_POST['check2'];

    	// dump($list);
    	// dump($list2);
    	if (M('plan')->where(['norm'=>$norm])->save($list) > 0) {
    		if (M('plan')->where(['norm'=>$norm2])->save($list2) > 0) {
    			echo '1111';
    		}else{
    			echo '2222';
    		}
    	}else{
    		echo '2222';
    	}
    	

    }



 }